package yagwl.client.widget;

import yagwl.client.resource.Resources;

import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.Image;

/**
 * Spacer widget that uses a transparent pixel image to create space
 */
public class Spacer extends Composite {

  private Image spacer  = new Image(Resources.I.trpx());

  public Spacer(int width, int height) {
    spacer.setWidth(width + "px");
    spacer.setHeight(height + "px");
    initWidget(spacer);
  }
  
  public void setWidth(int width) {
    spacer.setWidth(width + "px");
  }
}
